package org.jsbd.boss.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jsbd.boss.dao.IIpDAO;
import org.jsbd.boss.domian.CityInfo;
import org.jsbd.boss.domian.IpRange;
import org.jsbd.boss.domian.ProvinceInfo;
import org.jsbd.boss.domian.TPhoneAreaProvinceInfo;

import edu.hziee.common.dbroute.BaseDAO;

public class IpDAOImpl extends BaseDAO implements IIpDAO {

	@Override
	public ProvinceInfo selectProvinceInfoList(ProvinceInfo form) {
		return (ProvinceInfo) super.queryForObject(
				"qy_ip.SELECT_TBL_PROVINCE_INFO", form);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<CityInfo> selectcCityInfoList(CityInfo form) {
		return super.queryForList("qy_ip.SELECT_TBL_CITY_INFO_LIST", form);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<TPhoneAreaProvinceInfo> getAllPhoneAreaProvinceInfo() {
		return super.queryForList("qy_ip.SELECT_ALL_IMSI_PROVINCE_INFO");
	}

	@Override
	public List<IpRange> getAllIpInfo() {
		return super.queryForList("qy_ip.SELECT_ALL_IP_INFO");
	}
	@Override
	public List<ProvinceInfo> getAllprovinceInfo() {
		return (List<ProvinceInfo>) super.queryForList("qy_ip.SELECT_ALL_PROVINCE_INFO");
	}
	
	@Override
	public String selectProvinceName(Integer provinceId){
		return (String) super.queryForObject("qy_ip.SELECT_NAME", provinceId);
	}

}
